combobox: Remove dead code & unneeded type checks
authorDaniel Boles <dboles@src.gnome.org>
Thu, 19 Jan 2017 22:28:41 +0000 (22:28 +0000)
committerDaniel Boles <dboles@src.gnome.org>
Thu, 19 Jan 2017 23:50:09 +0000 (23:50 +0000)
commit68824e80fda205da100170ac0543f6fd23851527
tree7b3fc5efc4755c0d09f9dd58876ff72579c49569
parentd7c3d86f02d15f8de1e9a376b9c0e78b336a9a2b
combobox: Remove dead code & unneeded type checks

Commit fdc0c6426b6fb751653f3a8536a344f69a6407ac removed the appears-as-
list style property, & hence the ability to put the ComboBox into list
mode – but it left behind a pile of hijinks that were only used in said
mode & so were now doing absolutely nothing. This commit deletes those.

While doing that, I got carried away…so this also stops pointlessly type
checking popup_widget, as that can never be anything but a GtkTreeMenu.
It still checks for NULL everywhere, which shouldn’t be needed, but (A)
this commit is already too big, & (B) simply removing such checks where
they _seem_ unnecessary causes bad times. I’ll puzzle through that later
gtk/gtkcombobox.c